/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.delogic.simuladorbancario.view.controller;

import br.com.delogic.simuladorbancario.business.ClienteBusiness;
import br.com.delogic.simuladorbancario.model.Cliente;
import br.com.delogic.simuladorbancario.model.ClienteJuridico;
import br.com.delogic.simuladorbancario.model.Sucesso;
import br.com.delogic.simuladorbancario.view.ClienteView;

/**
 *
 * @author julioVanni
 */
public class AlterarClienteController extends ClienteController{

  
    private Cliente cliente;
    
    public void salvarCliente(ClienteView clienteView) {
        
       clienteView.preencherCliente(cliente);
       Sucesso sucesso = clienteBusiness.alterarCliente(cliente);
       clienteView.informarSucesso(sucesso);
       
    }
    
    @Override
    public void consultarCliente(Integer codigo, ClienteView clienteView) {
        
        cliente = clienteBusiness.consultarCliente(codigo);
        clienteView.exibirCliente(cliente);
    }

    @Override
    public void ativarCliente(ClienteView clienteView) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void bloquearCliente(ClienteView clienteView) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void cancelarCliente(ClienteView clienteView) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void alterarCliente(ClienteView clienteView) {
        
        
    }
    
}
